set(QT_DONT_USE_QTGUI on)
set(QT_USE_QTCORE on)
set(QT_USE_QTNETWORK on)
find_package(Qt4 REQUIRED)
include(${QT_USE_FILE})
file(GLOB HEADERS *.h)

set(MOC_LIBS)
QT4_WRAP_CPP(MOC_LIBS ${HEADERS})

file(GLOB SRCS *.cpp)
add_library(common STATIC ${MOC_LIBS} ${SRCS})
target_link_libraries(common ${QT_LIBRARIES})
